package com.steve.xfood.service.impl;

import com.steve.xfood.repository.SellerInfoRepository;
import com.steve.xfood.dataobject.SellerInfo;
import com.steve.xfood.service.SellerInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 卖家信息
 * @author steve
 * @date 2020/5/25 17:14
 */
@Service
public class SellerInfoServiceImpl implements SellerInfoService {
    @Autowired
    private SellerInfoRepository sellerInfoRepository;

    @Override
    public SellerInfo findSellerInfoByOpenid(String openid) {
        return sellerInfoRepository.findByOpenid(openid);
    }
}
